package com.zrf.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zrf.dao.impl.CheckDaoImpl;
import com.zrf.dao.impl.ManifestDaoImpl;
import com.zrf.dao.impl.ProductDaoImpl;
import com.zrf.dao.impl.StorageDaoImpl;
import com.zrf.pojo.Storage;

@Service("storageService")
public class StorageService {
	@Autowired
	private StorageDaoImpl sdi;
	@Autowired
	private ProductDaoImpl pdi;
	@Autowired
	private ManifestDaoImpl ldi;
	@Autowired
	private CheckDaoImpl cdi;
	
	public Storage findBySid(Integer sid) {
		// TODO Auto-generated method stub

		try {
			return sdi.findById(sid);
		} catch (Exception e) {
			// TODO Auto-generated catch block

			e.printStackTrace();
		}
		return null;
	}
}